<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        $postService = Service_Post::getInstance();
        $posts  = $postService->getPostsByPage((int) $this->_getParam('page'));
        $posts->setView($this->view);
        $this->view->posts = $posts;
    }

    public function indexAction()
    {
        
    }


}

